load("//bazel:skia_rules.bzl", "skia_filegroup", "split_srcs_and_hdrs")

package(
    default_applicable_licenses = ["//:license"],
)

licenses(["notice"])

CORE_FILES = [
    "AnalyticBlurMask.cpp",
    "AnalyticBlurMask.h",
    "BoundsManager.h",
    "CoverageMaskShape.h",
    "EdgeAAQuad.h",
    "Geometry.h",
    "IntersectionTree.cpp",
    "IntersectionTree.h",
    "NonMSAAClip.h",
    "Rect.h",
    "Shape.cpp",
    "Shape.h",
    "SubRunData.h",
    "Transform.cpp",
    "Transform.h",
]

split_srcs_and_hdrs(
    name = "core",
    files = CORE_FILES,
)

skia_filegroup(
    name = "geom_hdrs",
    srcs = [":core_hdrs"],
    visibility = ["//src/gpu/graphite:__pkg__"],
)

skia_filegroup(
    name = "geom_srcs",
    srcs = [":core_srcs"],
    visibility = ["//src/gpu/graphite:__pkg__"],
)
